﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

using Rostfritt.Core.Entities;

namespace Rostfritt.Web.Models
{
    public class CreateOrderModel
    {
        [Required]
        public int OrderId { get; set; }

        public string OrderRef { get; set; }

        [Required]
        public Employer OurRef { get; set; }

        [Required]
        public Contact Contact { get; set; }

        [Required]
        public OrderType OrderType { get; set; }
    }

    public class CreateOrderItemModel
    {
        [Required]
        public Order Order { get; set; }

        [Required]
        public Product Product { get; set; }

        [Required]
        public double OrderItemNumbers { get; set; }

        public double OrderItemDiscount { get; set; }

        public double OrderItemAmount { get; set; }
    }
}